﻿@model BankCreditPortfolio.Models.ClientCabinetModels.ChangeDetailsModel
@{
    ViewBag.Title = "Change Details";
}
<strong>Change Details</strong>
<p>
    Use the form below to change your details.
</p>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<link href="@Url.Content("~/Content/Styles/forms.css")" rel="stylesheet" type="text/css" />
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true, "Details change was unsuccessful. Please correct the errors and try again.")
    <div>
        <fieldset>
            <legend>Profile Information</legend>
            <div class="editor-label">
                @Html.LabelFor(m => m.Address)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Address)
                @Html.ValidationMessageFor(m => m.Address)
            </div>
            <div class="editor-label">
                @Html.LabelFor(m => m.Phone)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Phone)
                @Html.ValidationMessageFor(m => m.Phone)
            </div>
            <div class="editor-label">
                @Html.LabelFor(m => m.Workplace)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Workplace)
                @Html.ValidationMessageFor(m => m.Workplace)
            </div>
            <p>
                Fields marked <b>bold</b> are required</p>
            <p>
                <input type="submit" name="button" value="Change Details" />
                <input type="button" onclick="ClickCancel();" value="Cancel" />
                <script type="text/javascript">
                    function ClickCancel() {
                        window.location = '@Url.Action("Index", "Home")';
                    }
                </script>
            </p>
        </fieldset>
    </div>
}